package com.yami.shop.delivery.common.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yami.shop.bean.model.OrderItem;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author LGH
 * @date 2020-04-23 15:18:29
 */
@Data
@TableName("tz_order_self_station")
@Schema(description ="自提订单信息表")
public class OrderSelfStation implements Serializable{
    private static final long serialVersionUID = 1L;

    @TableId
    @Schema(description = "自提订单id")
    private Long id;

    @Schema(description = "订单编号")
    private String orderNumber;

    @Schema(description = "自提点id")
    private Long stationId;

    @Schema(description = "店铺id")
    private Long shopId;

    @Schema(description = "自提人的手机")
    private String stationUserMobile;

    @Schema(description = "自提人的名字")
    private String stationUserName;

    @Schema(description = "自提时间(用户下单时选择)")
    private String stationTime;

    @Schema(description = "自提提货码")
    private String stationCode;

    @Schema(description = "上门自提点的地址")
    private String stationAddress;

    @Schema(description = "上门自提点的联系电话")
    private String stationPhone;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "更新时间")
    private Date updateTime;

    @TableField(exist = false)
    @Schema(description = "订单项列表")
    private List<OrderItem> orderItems;
}
